const express = require('express')
const router = express.Router()

const casesDao = require('../dao/casesDao.js')

router.get('/cases/getCasesByPage', (req, res, next) => {
    casesDao.queryCasesByPage(req, res, next)
})
router.get('/cases/getCaseById', (req, res, next) => {
    casesDao.queryCaseById(req, res, next)
})
router.get('/cases/getMajorCases', (req, res, next) => {
    casesDao.queryMajorCases(req, res, next)
})

module.exports = router